package com.doudou.feign.auth.transmit;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 傻男人
 * @Date: 2020/5/25 11:28
 * @Version: 1.0
 * @Description: 通过注解使配置生效
 */
@Configuration
public class EnableOAuth2FeignAutoConfiguration {

    public EnableOAuth2FeignAutoConfiguration() {
    }

    @Bean
    public FeignAuthRequestInterceptor feignAuthRequestInterceptor(){
       return new FeignAuthRequestInterceptor();
    }

    @Bean
    public RequestFilter requestFilter(){
        return new RequestFilter();
    }
}
